  /**
   * Generate time : 2016-09-02 10:17:53
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cp.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCPProducePlanQT 
 * table comment : 其他计划 
 */
public class ZMCPProducePlanQT extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdProfessionalplanId = " ";		/* 专业计划ID*/
	private String fdProduceplanId = " ";		/* 生产计划ID*/
	private String fdPlanType = " ";		/* 计划类型*/
	private String fdPlanYear = " ";		/* 计划年份*/
	private String fdPlanMonth = " ";		/* 计划月份*/
	private BigDecimal fdPlanSum = new BigDecimal("0");		/* 计划总量*/
	private BigDecimal fdStruggleSum = new BigDecimal("0");		/* 月奋斗量*/
	private BigDecimal fdDaySum = new BigDecimal("0");		/* 日平均量*/
	private String fdUnit = " ";		/* 计量单位ID*/
	private String fdBeginDate = " ";		/* 开工日期*/
	private String fdDepartmentId = " ";		/* 施工部门ID*/
	private String fdDepartment = " ";		/* 施工部门*/
	private String fdProjectId = " ";		/* 工程ID*/
	private BigDecimal fdDesignSum = new BigDecimal("0");		/* 设计工作量*/
	private BigDecimal fdSurplusSum = new BigDecimal("0");		/* 剩余工作量*/
	private Long fdPlanCrossDay = new Long(0);	/* 生产天数*/
	private String fdPlanStatus = " ";		/* 计划状态*/
	private String fdCreateDepartmentId = " ";		/* 编制部门ID*/
	private String fdCreateDepartment = " ";		/* 编制部门*/
	private String fdCreatorId = " ";		/* 编制人ID*/
	private String fdCreator = " ";		/* 编制人*/
	private String fdCreateTime = " ";		/* 编制时间*/
	private String fdRemark = " ";		/* 备注*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProfessionalplanId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("专业计划ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProduceplanId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产计划ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanType");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("计划类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("计划月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划总量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStruggleSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("月奋斗量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDaySum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("日平均量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUnit");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("计量单位ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("开工日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProjectId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("工程ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDesignSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("设计工作量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplusSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余工作量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanCrossDay");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("生产天数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanStatus");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("计划状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("编制部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreatorId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreator");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("编制时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCPProducePlanQT() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdProfessionalplanId - 专业计划ID
	 * @return the fdProfessionalplanId
	 */
	public String getFdProfessionalplanId() {
		return this.fdProfessionalplanId;
	}
	
	/**
	 * set the fdProfessionalplanId - 专业计划ID
	 */
	public void setFdProfessionalplanId(String fdProfessionalplanId) {
		this.fdProfessionalplanId = fdProfessionalplanId;
	}
	
	/**
	 * get the fdProduceplanId - 生产计划ID
	 * @return the fdProduceplanId
	 */
	public String getFdProduceplanId() {
		return this.fdProduceplanId;
	}
	
	/**
	 * set the fdProduceplanId - 生产计划ID
	 */
	public void setFdProduceplanId(String fdProduceplanId) {
		this.fdProduceplanId = fdProduceplanId;
	}
	
	/**
	 * get the fdPlanType - 计划类型
	 * @return the fdPlanType
	 */
	public String getFdPlanType() {
		return this.fdPlanType;
	}
	
	/**
	 * set the fdPlanType - 计划类型
	 */
	public void setFdPlanType(String fdPlanType) {
		this.fdPlanType = fdPlanType;
	}
	
	/**
	 * get the fdPlanYear - 计划年份
	 * @return the fdPlanYear
	 */
	public String getFdPlanYear() {
		return this.fdPlanYear;
	}
	
	/**
	 * set the fdPlanYear - 计划年份
	 */
	public void setFdPlanYear(String fdPlanYear) {
		this.fdPlanYear = fdPlanYear;
	}
	
	/**
	 * get the fdPlanMonth - 计划月份
	 * @return the fdPlanMonth
	 */
	public String getFdPlanMonth() {
		return this.fdPlanMonth;
	}
	
	/**
	 * set the fdPlanMonth - 计划月份
	 */
	public void setFdPlanMonth(String fdPlanMonth) {
		this.fdPlanMonth = fdPlanMonth;
	}
	
	/**
	 * get the fdPlanSum - 计划总量
	 * @return the fdPlanSum
	 */
	public BigDecimal getFdPlanSum() {
		return this.fdPlanSum;
	}
	
	/**
	 * set the fdPlanSum - 计划总量
	 */
	public void setFdPlanSum(BigDecimal fdPlanSum) {
		this.fdPlanSum = fdPlanSum;
	}
	
	/**
	 * get the fdStruggleSum - 月奋斗量
	 * @return the fdStruggleSum
	 */
	public BigDecimal getFdStruggleSum() {
		return this.fdStruggleSum;
	}
	
	/**
	 * set the fdStruggleSum - 月奋斗量
	 */
	public void setFdStruggleSum(BigDecimal fdStruggleSum) {
		this.fdStruggleSum = fdStruggleSum;
	}
	
	/**
	 * get the fdDaySum - 日平均量
	 * @return the fdDaySum
	 */
	public BigDecimal getFdDaySum() {
		return this.fdDaySum;
	}
	
	/**
	 * set the fdDaySum - 日平均量
	 */
	public void setFdDaySum(BigDecimal fdDaySum) {
		this.fdDaySum = fdDaySum;
	}
	
	/**
	 * get the fdUnit - 计量单位ID
	 * @return the fdUnit
	 */
	public String getFdUnit() {
		return this.fdUnit;
	}
	
	/**
	 * set the fdUnit - 计量单位ID
	 */
	public void setFdUnit(String fdUnit) {
		this.fdUnit = fdUnit;
	}
	
	/**
	 * get the fdBeginDate - 开工日期
	 * @return the fdBeginDate
	 */
	public String getFdBeginDate() {
		return this.fdBeginDate;
	}
	
	/**
	 * set the fdBeginDate - 开工日期
	 */
	public void setFdBeginDate(String fdBeginDate) {
		this.fdBeginDate = fdBeginDate;
	}
	
	/**
	 * get the fdDepartmentId - 施工部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdDepartment - 施工部门
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 施工部门
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	
	/**
	 * get the fdProjectId - 工程ID
	 * @return the fdProjectId
	 */
	public String getFdProjectId() {
		return this.fdProjectId;
	}
	
	/**
	 * set the fdProjectId - 工程ID
	 */
	public void setFdProjectId(String fdProjectId) {
		this.fdProjectId = fdProjectId;
	}
	
	/**
	 * get the fdDesignSum - 设计工作量
	 * @return the fdDesignSum
	 */
	public BigDecimal getFdDesignSum() {
		return this.fdDesignSum;
	}
	
	/**
	 * set the fdDesignSum - 设计工作量
	 */
	public void setFdDesignSum(BigDecimal fdDesignSum) {
		this.fdDesignSum = fdDesignSum;
	}
	
	/**
	 * get the fdSurplusSum - 剩余工作量
	 * @return the fdSurplusSum
	 */
	public BigDecimal getFdSurplusSum() {
		return this.fdSurplusSum;
	}
	
	/**
	 * set the fdSurplusSum - 剩余工作量
	 */
	public void setFdSurplusSum(BigDecimal fdSurplusSum) {
		this.fdSurplusSum = fdSurplusSum;
	}
	
	/**
	 * get the fdPlanCrossDay - 生产天数
	 * @return the fdPlanCrossDay
	 */
	public Long getFdPlanCrossDay() {
		return this.fdPlanCrossDay;
	}
	
	/**
	 * set the fdPlanCrossDay - 生产天数
	 */
	public void setFdPlanCrossDay(Long fdPlanCrossDay) {
		this.fdPlanCrossDay = fdPlanCrossDay;
	}
	
	/**
	 * get the fdPlanStatus - 计划状态
	 * @return the fdPlanStatus
	 */
	public String getFdPlanStatus() {
		return this.fdPlanStatus;
	}
	
	/**
	 * set the fdPlanStatus - 计划状态
	 */
	public void setFdPlanStatus(String fdPlanStatus) {
		this.fdPlanStatus = fdPlanStatus;
	}
	
	/**
	 * get the fdCreateDepartmentId - 编制部门ID
	 * @return the fdCreateDepartmentId
	 */
	public String getFdCreateDepartmentId() {
		return this.fdCreateDepartmentId;
	}
	
	/**
	 * set the fdCreateDepartmentId - 编制部门ID
	 */
	public void setFdCreateDepartmentId(String fdCreateDepartmentId) {
		this.fdCreateDepartmentId = fdCreateDepartmentId;
	}
	
	/**
	 * get the fdCreateDepartment - 编制部门
	 * @return the fdCreateDepartment
	 */
	public String getFdCreateDepartment() {
		return this.fdCreateDepartment;
	}
	
	/**
	 * set the fdCreateDepartment - 编制部门
	 */
	public void setFdCreateDepartment(String fdCreateDepartment) {
		this.fdCreateDepartment = fdCreateDepartment;
	}
	
	/**
	 * get the fdCreatorId - 编制人ID
	 * @return the fdCreatorId
	 */
	public String getFdCreatorId() {
		return this.fdCreatorId;
	}
	
	/**
	 * set the fdCreatorId - 编制人ID
	 */
	public void setFdCreatorId(String fdCreatorId) {
		this.fdCreatorId = fdCreatorId;
	}
	
	/**
	 * get the fdCreator - 编制人
	 * @return the fdCreator
	 */
	public String getFdCreator() {
		return this.fdCreator;
	}
	
	/**
	 * set the fdCreator - 编制人
	 */
	public void setFdCreator(String fdCreator) {
		this.fdCreator = fdCreator;
	}
	
	/**
	 * get the fdCreateTime - 编制时间
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}
	
	/**
	 * set the fdCreateTime - 编制时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}
	
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdProfessionalplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProfessionalplanId")), fdProfessionalplanId));
		setFdProduceplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProduceplanId")), fdProduceplanId));
		setFdPlanType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanType")), fdPlanType));
		setFdPlanYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanYear")), fdPlanYear));
		setFdPlanMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanMonth")), fdPlanMonth));
		setFdPlanSum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPlanSum")), fdPlanSum));
		setFdStruggleSum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdStruggleSum")), fdStruggleSum));
		setFdDaySum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDaySum")), fdDaySum));
		setFdUnit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUnit")), fdUnit));
		setFdBeginDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginDate")), fdBeginDate));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdProjectId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectId")), fdProjectId));
		setFdDesignSum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDesignSum")), fdDesignSum));
		setFdSurplusSum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdSurplusSum")), fdSurplusSum));
		setFdPlanCrossDay(NumberUtils.toLong(StringUtils.toString(map.get("fdPlanCrossDay")), fdPlanCrossDay));
		setFdPlanStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanStatus")), fdPlanStatus));
		setFdCreateDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartmentId")), fdCreateDepartmentId));
		setFdCreateDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartment")), fdCreateDepartment));
		setFdCreatorId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatorId")), fdCreatorId));
		setFdCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreator")), fdCreator));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdProfessionalplanId",StringUtils.toString(fdProfessionalplanId, eiMetadata.getMeta("fdProfessionalplanId")));	
			map.put("fdProduceplanId",StringUtils.toString(fdProduceplanId, eiMetadata.getMeta("fdProduceplanId")));	
			map.put("fdPlanType",StringUtils.toString(fdPlanType, eiMetadata.getMeta("fdPlanType")));	
			map.put("fdPlanYear",StringUtils.toString(fdPlanYear, eiMetadata.getMeta("fdPlanYear")));	
			map.put("fdPlanMonth",StringUtils.toString(fdPlanMonth, eiMetadata.getMeta("fdPlanMonth")));	
			map.put("fdPlanSum",StringUtils.toString(fdPlanSum, eiMetadata.getMeta("fdPlanSum")));	
			map.put("fdStruggleSum",StringUtils.toString(fdStruggleSum, eiMetadata.getMeta("fdStruggleSum")));	
			map.put("fdDaySum",StringUtils.toString(fdDaySum, eiMetadata.getMeta("fdDaySum")));	
			map.put("fdUnit",StringUtils.toString(fdUnit, eiMetadata.getMeta("fdUnit")));	
			map.put("fdBeginDate",StringUtils.toString(fdBeginDate, eiMetadata.getMeta("fdBeginDate")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdProjectId",StringUtils.toString(fdProjectId, eiMetadata.getMeta("fdProjectId")));	
			map.put("fdDesignSum",StringUtils.toString(fdDesignSum, eiMetadata.getMeta("fdDesignSum")));	
			map.put("fdSurplusSum",StringUtils.toString(fdSurplusSum, eiMetadata.getMeta("fdSurplusSum")));	
			map.put("fdPlanCrossDay",StringUtils.toString(fdPlanCrossDay, eiMetadata.getMeta("fdPlanCrossDay")));	
			map.put("fdPlanStatus",StringUtils.toString(fdPlanStatus, eiMetadata.getMeta("fdPlanStatus")));	
			map.put("fdCreateDepartmentId",StringUtils.toString(fdCreateDepartmentId, eiMetadata.getMeta("fdCreateDepartmentId")));	
			map.put("fdCreateDepartment",StringUtils.toString(fdCreateDepartment, eiMetadata.getMeta("fdCreateDepartment")));	
			map.put("fdCreatorId",StringUtils.toString(fdCreatorId, eiMetadata.getMeta("fdCreatorId")));	
			map.put("fdCreator",StringUtils.toString(fdCreator, eiMetadata.getMeta("fdCreator")));	
			map.put("fdCreateTime",StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			
		return map;
	
	}
}